package controllerlayer;

import modellayer.ZipCode;
import dblayer.ZipcodeDB;

/**
 * The ZipCodeCtrl class to handle zipCode information
 * @author Allan Eriksen, Andreas Rye, Casper Madsen, Christian Stidsborg, Stefan Bols
 */

public class ZipCodeCtrl 
{
	private ZipcodeDB zipCodeDB;
	/**
	 * @param zipCodeDB
	 */
	
	
	/**
	 * Constructor for the zipCodeCtrl class
	 */
	public ZipCodeCtrl()
	{
		zipCodeDB = new ZipcodeDB();
	}
	
	/**
	 * Method for searching for zipCode by using zipCode
	 * @param zipCode
	 * @return result
	 */
	public ZipCode findZipCode(int zipCode)
	{
		ZipCode result = zipCodeDB.findZipcode(zipCode);
		return result;
	}
	
}